package com.ywjh.inter.entity;

import java.sql.Timestamp;

import com.ywjh.inter.utils.StrUtil;

import net.sf.json.JSONObject;

public class SportPlanEntity {
	private int id;
	private int patient_id;
	private String diet_tips;
	private Timestamp add_time;
	private Timestamp start_time;
	private int add_doc_id;
	private int status;

	public Timestamp getStart_time() {
		return start_time;
	}

	public void setStart_time(Timestamp start_time) {
		this.start_time = start_time;
	}

	

	public int getPatient_id() {
		return patient_id;
	}

	public void setPatient_id(int patient_id) {
		this.patient_id = patient_id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDiet_tips() {
		return diet_tips;
	}

	public void setDiet_tips(String diet_tips) {
		this.diet_tips = diet_tips;
	}

	public Timestamp getAdd_time() {
		return add_time;
	}

	public void setAdd_time(Timestamp add_time) {
		this.add_time = add_time;
	}

	public int getAdd_doc_id() {
		return add_doc_id;
	}

	public void setAdd_doc_id(int add_doc_id) {
		this.add_doc_id = add_doc_id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public JSONObject toJson() {
		JSONObject json = new JSONObject();
		json.put("id", this.id);
		json.put("patient_id", this.patient_id);
		json.put("diet_tips", this.diet_tips);
		json.put("add_doc_id", this.add_doc_id);
		json.put("start_time", StrUtil.getYYYYMMDD(start_time));
		json.put("add_time", StrUtil.getYYYYMMDDHHMISS(add_time));
		json.put("status", this.status);
		return json;
	}

}
